﻿using System;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using MapEntities;

namespace KDPWebPart.MapWebPart
{
    public partial class MapWebPartControl : UserControl
    {
        public MapDataRequest RequestData = null;

        public string pageUri = "";
        public void BindMapData()
        {
            if (RequestData != null)
            {
                ctlMap.PageUri = pageUri;
                ctlMap.Bind(RequestData);
            }
        }

        protected void Page_Load(object sender, EventArgs e)
        {
            //if (!Page.IsPostBack)
            //{
            //    BindMapData();                
            //}
        }
    }
}
